﻿namespace Aurora.RabbitMq.Provider;

/// <summary>
/// channel pool interface
/// </summary>
public interface IChannelPool : IDisposable
{
    /// <summary>
    /// acquire
    /// </summary>
    /// <param name="channelName"></param>
    /// <param name="connectionName"></param>
    /// <returns></returns>
    IChannelAccessor Acquire(string? channelName = null, string? connectionName = null);
}